export const AssetStatusTextToCode: Record<string, number> = {
  '正常': 1,
  '维护中': 2,
  '报废': 0
}

export const AssetStatusCodeToText: Record<number, string> = Object.fromEntries(
  Object.entries(AssetStatusTextToCode).map(([k, v]) => [v, k])
) as Record<number, string> 

// Maintenance status mapping
export const MaintStatusTextToCode: Record<string, number> = {
  '待维护': 0,
  '维护中': 1,
  '已完成': 2,
  '已取消': 3
}
export const MaintStatusCodeToText: Record<number, string> = Object.fromEntries(
  Object.entries(MaintStatusTextToCode).map(([k,v])=>[v,k])
) as Record<number,string>; 